package com.ruoyi.hcmain.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hcmain.mapper.HcStockMapper;
import com.ruoyi.hcmain.domain.HcStock;
import com.ruoyi.hcmain.service.IHcStockService;

/**
 * 仓库信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-10
 */
@Service
public class HcStockServiceImpl implements IHcStockService 
{
    @Autowired
    private HcStockMapper hcStockMapper;

    /**
     * 查询仓库信息
     * 
     * @param stockId 仓库信息主键
     * @return 仓库信息
     */
    @Override
    public HcStock selectHcStockByStockId(Long stockId)
    {
        return hcStockMapper.selectHcStockByStockId(stockId);
    }

    /**
     * 查询仓库信息列表
     * 
     * @param hcStock 仓库信息
     * @return 仓库信息
     */
    @Override
    public List<HcStock> selectHcStockList(HcStock hcStock)
    {
        return hcStockMapper.selectHcStockList(hcStock);
    }

    /**
     * 新增仓库信息
     * 
     * @param hcStock 仓库信息
     * @return 结果
     */
    @Override
    public int insertHcStock(HcStock hcStock)
    {
        return hcStockMapper.insertHcStock(hcStock);
    }

    /**
     * 修改仓库信息
     * 
     * @param hcStock 仓库信息
     * @return 结果
     */
    @Override
    public int updateHcStock(HcStock hcStock)
    {
        return hcStockMapper.updateHcStock(hcStock);
    }

    /**
     * 批量删除仓库信息
     * 
     * @param stockIds 需要删除的仓库信息主键
     * @return 结果
     */
    @Override
    public int deleteHcStockByStockIds(Long[] stockIds)
    {
        return hcStockMapper.deleteHcStockByStockIds(stockIds);
    }

    /**
     * 删除仓库信息信息
     * 
     * @param stockId 仓库信息主键
     * @return 结果
     */
    @Override
    public int deleteHcStockByStockId(Long stockId)
    {
        return hcStockMapper.deleteHcStockByStockId(stockId);
    }
}
